{% extends "_layout_site_default.html" %}

{% block head_title %}Edit user{% endblock %}

{% block body %}

<div class="container-fluid">
	<div class="row">
        
        <div class="col-md-2">
            
            {{ side_navpanel('home') }}
            
        </div>
        
        <div class="col-md-10">
            
            <form class="form-horizontal" method="POST">
                <input type="hidden" id="user_key" name="user_key" value="{{user.key.urlsafe()}}" />
                <div class="form-group">
                    <label for="input_email" class="col-sm-2 control-label">Email</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="input_email" name="input_email" value="{{user.email}}" placeholder="Email (Username)">
                        
                    </div>
                </div>
                
                <div class="form-group">
                    <label for="input_first_name" class="col-sm-2 control-label">First Name</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="input_first_name" name="input_first_name" value="{{user.first_name}}" placeholder="First name">
                    </div>
                </div>
                
                <div class="form-group">
                    <label for="input_last_name" class="col-sm-2 control-label">Last Name</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="input_last_name" name="input_last_name" value="{{user.last_name}}" placeholder="Last Name">
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" name="submit_type" value="add_user" class="btn btn-default">Save changes</button>
                    </div>
                </div>
            </form>
            
        </div>

	</div>
</div>

{% endblock %}